package cn.blunce.utils.Timer;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.TextView;

import cn.blunce.mylib.R;

public class TimerTest extends Activity {
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_timer_test);

        textView = (TextView) findViewById(R.id.show_post_info);

        MyTimer.postDo(handler, 5000L);

    }

    private Handler handler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
            switch (msg.what) {
                case 1:
                    textView.setVisibility(View.VISIBLE);
                    break;
            }
        }
    };

}
